layui.use(['form','layer'], function () {
    var layer = layui.layer, form = layui.form;
    form.val('form',{'parentId':getUrlParam("parentId"),'parentName':getUrlParam("parentName")});
    form.on('submit(save-btn)', function(data){
        formSub('scm/department/add',function (res) {
            parent.obtainDepart();
            closeThisWin('添加成功');
        });
        return false;
    });
});